package com.wyd.wenyongdaAdmin.xo.admin.role.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wyd.wenyongdaAdmin.commons.cache.MyBatisRedisCache;
import com.wyd.wenyongdaAdmin.commons.model.admin.role.dto.RoleMenuDTO;
import com.wyd.wenyongdaAdmin.commons.model.admin.role.entity.RoleMenuEntity;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@CacheNamespace(implementation = MyBatisRedisCache.class,eviction = MyBatisRedisCache.class)
public interface RoleMenuMapper extends BaseMapper<RoleMenuEntity> {

    Integer insertBatch(@Param("roleMenus") List<RoleMenuDTO> roleMenus);

    Integer deleteBatchByMenuIds(@Param("menuIds") List<Long> menuIds);
}
